package com.im.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 群成员
 *
 * @author yunZhouJiaDi
 */
@Data
@Accessors(chain = true)
@TableName("cluster_user")
public class ClusterUser {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("群id")
    private String clusterId;

    @ApiModelProperty("群成员id")
    private String userId;

    @ApiModelProperty("群成员类型（1-普通成员，2-群主）")
    private Integer role;

    @ApiModelProperty("加入时间")
    private Date createTime;

}
